#include <stdio.h>

typedef struct{
	int a;
	int b;
}ab;
typedef void(*mytest)(void);

int addjia(ab ab1)
{
	int sum=ab1.a+ab1.b;
	return sum;
}

int main(int argc, const char *argv[])
{
	ab myab;
	myab.a=1;
	myab.b=2;
	mytest test1;
	test1=(void *)addjia;
	int ret=((int(*)(ab *))test1)(&myab);
	printf("%d\n",ret);
	return 0;
}
